<?php

use think\migration\Migrator;


class AlterCouponOrderAddNewCostPrice extends Migrator
{
    public function up()
    {
        $this->table('coupon_order')
            ->addColumn('new_supplier_price', 'integer', ['limit' => 11, 'default' => 0, 'comment' => '价格降低时候，供应商结算价。单位：分'])
            ->update();
    }

    public function down()
    {
        $this->table('coupon_order')->removeColumn('new_supplier_price');
    }
}
